package cn.v2tila.rsosa.student.jpa;

import cn.v2tila.rsosa.student.entity.AssoEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * @author v2tila on 20:23 2019/2/27
 */

public interface AssoJPA extends JpaRepository<AssoEntity, Integer>, JpaSpecificationExecutor<AssoEntity> {

    List<AssoEntity> findBySchoolNoAndAndCollegeNo(String schoolNo,String collegeNo);

    AssoEntity findBySchoolNoAndName(String schoolName, String name);

    AssoEntity findByUniqueId(String uniqueId);

    AssoEntity findBySchoolNoAndUniqueId(String schoolNo, String uniqueId);

}
